#define _CRT_SECURE_NO_WARNINGS 1
#include "SLT.h"
Test1()
{
	SListNode* s=NULL;
	SLTPushBack(&s, 1);
	SLTPrint(s);
	SLTPushBack(&s, 2);
	SLTPrint(s);
	SLTPushBack(&s, 3);
	SLTPrint(s);
	SLTPushBack(&s, 4);
	SLTPrint(s);

}
Test2()
{
	SListNode* s = NULL;
	SLTPushBack(&s, 1);
	SLTPushBack(&s, 2);
	SLTPushBack(&s, 3);
	SLTPushBack(&s, 4);
	SLTPrint(s);
	SLTPushFront(&s, 5);
	SLTPushFront(&s, 6);
	SLTPushFront(&s, 7);
	SLTPushFront(&s, 8);
	SLTPrint(s);
	SLTPopBack(&s);
	SLTPrint(s);
	SLTPopBack(&s);
	SLTPrint(s);
	SListNode* ret = SLTFind(s, 4);
	SLTInsert(&s, ret, 9);
	SLTPrint(s);

}
Test3()
{
	SListNode* s = NULL;
	SLTPushBack(&s, 1);
	SLTPushBack(&s, 2);
	SLTPushBack(&s, 3);
	SLTPushBack(&s, 4);
	SLTPrint(s);

	SListNode* ret = SLTFind(s, 4);
	SLTInsert(&s, ret, 9);
	SLTPrint(s);

}

Test4()
{
	SListNode* s = NULL;
	SLTPushBack(&s, 1);
	SLTPushBack(&s, 2);
	SLTPushBack(&s, 3);
	SLTPushBack(&s, 4);
	SLTPrint(s);

	SListNode* ret = SLTFind(s, 4);
	//SLTErase(&s, ret);

	SLTInsertAfter(ret, 6);
	SLTPrint(s);
}
int main()
{
	Test4();

	return 0;
}